<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>06jQuery CSS样式增删改查</title>
    <script src="../03jquery/js/jquery-3.6.0.js"></script>
    <script>
        $(function () {
            // css()       查询、修改样式

            // alert($("div").css("color"));  // rgb(0,0,0)
            $("#div1").css("color", "red");
            $("#div2").css({"color": "red", "background-color": "yellow", "font-size": "2em"});
        });
    </script>
</head>
<body>
<div style="width: 10em">
    <div id="div1">div1</div>
    <div id="div2">div2</div>
</div>
</body>
</html>